﻿@using CodeCamp.Models.EventMgmt
@model EventMgmtEventViewModel
@{
    if ((Model.EditModel != null) && (Model.EditModel.ShortName != null))
    {
        ViewBag.Title = ("Code Camp | Edit Event " + @Model.EditModel.ShortName);
    }
    else
    {
        ViewBag.Title = "Code Camp | Edit Event";
    }
    ViewBag.EventName = "Code Camp";
}

@section headaddon {
<style>
    table td
    {
        border: 0px;
        margin: 1px, 2px, 1px, 2px;
    }
    .fieldset
    {
    }
    .editor-label,
    .display-label 
    {
        text-align: right;
        vertical-align: baseline;
    }
    .display-field,
    .editor-field
    {
        vertical-align: baseline;
    }
    .display-field
    {
        vertical-align: baseline;
    }
    #DisplayName
    {
        width: 40em;
    }
    #DisplayDate
    {
        width: 20em;
    }
    #DisplayLocation
    {
        width: 40em;
    }
    #RegistrationUrl
    {
        width: 40em;
    }
    #SchedulePdfUrl
    {
        width: 40em;
    }

</style>
}

<h2>Add Event</h2>

@Html.Partial("PartialViews/EditEventPartial", @Model.EditModel)

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
